/* 登录页面样式 */
.loginHtml, .loginBody {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ed 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.loginBody form.layui-form {
    padding: 30px;
    width: 380px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(22, 93, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.loginBody form.layui-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #165DFF 0%, #0E42B3 100%);
}

.loginBody form.layui-form:hover {
    box-shadow: 0 15px 35px rgba(22, 93, 255, 0.15);
    transform: translateY(-2px);
}

.login_face {
    margin: -65px auto 25px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #fff;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f2f5;
}

.login_face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.login_face:hover img {
    transform: scale(1.05);
}

.loginBody .layui-form-item {
    position: relative;
    margin-bottom: 25px;
}

.loginBody .layui-form-item label {
    position: absolute;
    color: #909399;
    left: 15px;
    top: 12px;
    line-height: 20px;
    background: #fff;
    padding: 0 5px;
    font-size: 14px;
    cursor: text;
    transition: all 0.2s ease;
    transform-origin: left top;
}

.loginBody .layui-form-item.layui-input-focus label,
.loginBody .layui-form-item.layui-input-active label {
    top: -8px;
    font-size: 12px;
    color: #165DFF;
    transform: scale(0.9);
}

.loginBody .layui-input {
    height: 48px;
    border-radius: 8px;
    border: 1px solid #e4e7ed;
    padding: 0 15px;
    font-size: 14px;
    color: #303133;
    transition: all 0.2s ease;
}

.loginBody .layui-input:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}

.loginBody .layui-input::placeholder {
    color: #c0c4cc;
}

.loginBody .layui-form-item.layui-input-focus input {
    border-color: #165DFF !important;
}

.loginBody .layui-btn {
    height: 48px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    flex: 1; /* 让按钮平均分配宽度 */
}

.loginBody .layui-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.15);
}

.loginBody .button-group {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.loginBody .button-wrapper {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 280px; /* 限制按钮组宽度 */
    margin: 0 auto; /* 水平居中按钮组 */
}

.loginBody .login-btn {
    background-color: #165DFF;
    color: #fff;
    border: none;
}

.loginBody .login-btn:hover {
    background-color: #0E42B3;
}

.loginBody .register-btn {
    background-color: #fff;
    color: #165DFF;
    border: 1px solid #e4e7ed;
}

.loginBody .register-btn:hover {
    background-color: #f5f7fa;
    border-color: #165DFF;
}

/* 验证码区域样式 */
#imgCode {
    display: flex;
    align-items: center;
}

#imgCode input {
    flex: 1;
    margin-right: 10px;
}

#imgCode a {
    display: block;
    height: 48px;
}

#yzm_img {
    height: 100%;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#yzm_img:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 浮动通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    max-width: 300px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    background-color: #f0f9eb;
    border-left: 4px solid #52c41a;
    color: #389e0d;
}

.notification.error {
    background-color: #fef2f2;
    border-left: 4px solid #ff4d4f;
    color: #cf1322;
}

.notification.info {
    background-color: #e6f7ff;
    border-left: 4px solid #1890ff;
    color: #0050b3;
}

.notification.warning {
    background-color: #fff7e6;
    border-left: 4px solid #faad14;
    color: #b7791f;
}

.notification .icon {
    margin-right: 10px;
    font-size: 16px;
}

.notification .message {
    font-size: 14px;
}

.notification .close {
    margin-left: 15px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.4);
}

.notification .close:hover {
    color: rgba(0, 0, 0, 0.6);
}